#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "astroscene.h"
#include <vector>
#include "floatingdialog.h"
#include <QListWidgetItem>

using namespace std;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:

    void on_pbLoadSequence_clicked();
    void onListChanged();
    void on_listWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
    void slotCenterOn(int x, int y);
    void on_listWidget_itemChanged(QListWidgetItem *item);

    void on_pbZoomIn_clicked();

    void on_pbZoomOut_clicked();

private:
    Ui::MainWindow *ui;
    double dScaleX, dScaleY;
    astroScene** scenes;
    void Load(int nIndex);
    FloatingDialog* floater;
};

#endif // MAINWINDOW_H
